package com.heatup.apt.api.service;

import java.util.Map;

import com.baomidou.framework.service.ISuperService;
import com.heatup.apt.model.TSysPresaleTeam;
import com.heatup.apt.model.api.ApiResultModel;
import com.heatup.apt.model.user.UserInfo;

/**
 *
 * TSysPresaleTeam 表数据服务层接口
 *
 */
public interface TSysPresaleTeamService extends ISuperService<TSysPresaleTeam> {

	/**
	 * 添加预售人员
	 * @param userName
	 * @param mobile
	 * @param adminUserInfo
	 * @return
	 * @throws Exception
	 */
	ApiResultModel<Object> addPresaleUser(String userName, String mobile, UserInfo adminUserInfo) throws Exception;
	
	/**
	 * 查询一个预售团队
	 * @param userInfo
	 * @return
	 */
	ApiResultModel<Object> queryPresaleUserList(UserInfo userInfo);
	
	/**
	 * 删除预售人员
	 * @param adminUserInfo
	 * @param presaleId
	 * @return
	 */
	ApiResultModel<Object> delPresalUser(UserInfo adminUserInfo , Integer presaleId);
	
	/**
	 * 获取到店预约数据
	 * @param adminUserInfo
	 * @param presaleId
	 * @return
	 */
	ApiResultModel<Object> queryStoreAdvisoryList(UserInfo adminUserInfo , String payDate);
	
	/**
	 * 判断是否是预售人员
	 * @param userId
	 * @param mobile
	 * @return
	 */
	boolean checkPresalTeamUser(Integer userId, String mobile);
}